cd src
uic MyProject.ui -o ui_MyProject.h

moc MyProject.h -o moc_MyProject.cpp

g++ -c -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include" -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include/QtWidgets" main.cpp -o main.o

g++ -c -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include" -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include/QtWidgets" MyProject.cpp -o MyProject.o

g++ -c -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include" -I"D:/Application/Qt/6.7.3/llvm-mingw_64/include/QtWidgets" moc_MyProject.cpp -o moc_MyProject.o

g++ main.o MyProject.o moc_MyProject.o -o MyProject.exe -L"D:/Application/Qt/6.7.3/llvm-mingw_64/lib" -lQt6Widgets -lQt6Gui -lQt6Core

MyProject.exe 
cd ..